package ran.entity;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-08-17
 * Time: 23:06
 */
@Data
public class PageRequest {
    private Integer currentPage = 1;
    private Integer pageSize = 10;
    private Integer offset;

    public Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }


}
